<?php
	$id=$_POST['kode'];
	$jenis=$_POST['jenis'];
	
	if(isset($_POST['submit'])){
		$sql="update peserta set id_jenis_peserta=$jenis where id_peserta='$id'";
		$qry=mysql_query($sql);
	}

	$url_sukses="utama.php?module=mod_peserta";
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>